home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Answers 2002 January
/
PC Answers January 2002.7z
/
PC Answers January 2002.bin
/
graphics
/
freepixl
/
_SETUP.1
/
Diskspce.pxl
< prev
next >
Wrap
Text File
|
1999-10-03
|
1KB
|
51 lines
{-----------------------------------------------------------------------
Filename : diskspce.pxl
Purpose : Get disk type, total and free space
Date : v1.0 26 jan 96
Author : S.Dibbs, VYSOR Integration Inc
------------------------------------------------------------------------}
Initialize:
{ Get the screen parameters and adjust the main window for a fixed size. }
NewCaption$ = "Get Disk Type, Total and Free space"
UseCaption(NewCaption$)
UseCoordinates(PIXEL)
WinLocate(NewCaption$,200,100,480,310, Res)
InfoMenu(REMOVE)
WaitInput(100)
SetMenu("Exit!",Run_Leave,
ENDPOPUP,
"Get Disk",Get_disk,
ENDPOPUP)
Wait_for_input:
WaitInput()
Get_disk:
Label$ = "Select a disk from the list"
List$ = "A:\;B:\;C:\;D:\;E:\;F:\;G:\;H:\;I:\;J:\"
Delimiter$ = ";"
Disk$ = "C:\"
ListBox(Label$,List$,Delimiter$,Disk$)
If Disk$ = "" Then Goto Wait_for_input
GetDiskSpace(Disk$,Type$,Total,Free)
DrawBackGround
DrawText(10,10,Type$)
DrawNumber(10,30,Total)
DrawNumber(10,50,Free)
Goto Wait_for_input
Run_Leave:
End